<template>
	<view>
		2
		<button @click="loginOut">用户退出登录</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			loginOut() {
				uni.reLaunch({
					url: '/pages/view/login/login'
				});
				uni.setStorageSync('isLogin', '4')
				// 退出登录 清空状态
				this.$store.commit('clearState')
			}
		}
	}
</script>

<style>

</style>